package njust.edu.entity;

public class Dish {

    private String id;         //id
    private String name;       //名称
    private int type_id;       //类型id
    private float price;       //价格
    private String picture;    //图片
    private int sale;          //销量
    private int stock;         //库存
    private String description;//描述

    private DishType dishType; //菜品类型

    public Dish(String id, String name, int type_id, float price, String picture, int sale, int stock, String description) {
        this.id = id;
        this.name = name;
        this.type_id = type_id;
        this.price = price;
        this.picture = picture;
        this.sale = sale;
        this.stock = stock;
        this.description = description;
    }

    public DishType getDishType() {
        return dishType;
    }

    public void setDishType(DishType dishType) {
        this.dishType = dishType;
    }

    public Dish(){
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType_id() {
        return type_id;
    }

    public void setType_id(int type_id) {
        this.type_id = type_id;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getSale() {
        return sale;
    }

    public void setSale(int sale) {
        this.sale = sale;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public String toString() {
        return "Dish{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", type_id=" + type_id +
                ", price=" + price +
                ", picture='" + picture + '\'' +
                ", sale=" + sale +
                ", stock=" + stock +
                ", description='" + description + '\'' +
                ", dishType=" + dishType +
                '}';
    }
}
